<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>添加商户</title>
<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="../lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="../static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="../lib/jqueryPage/paging.min.js"></script>
<script type="text/javascript" src="../lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="../lib/laypage/1.2/laypage.js"></script>
<script src="../lib/jrender.min.js" type="text/javascript"></script>
<script class="resources library" src="../js/area.js" type="text/javascript"></script>
<script src="../js/config.js"></script>
</head>
<body>
<article class="page-container">
	<form class="form form-horizontal" id="form-admin-add">
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>商户名称：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" value="" placeholder="" id="merchantName" name="merchantName">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>商户简称：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" value="" placeholder="" id="merchant" name="merchant">
		</div>
	</div>
	<!--<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>用户类型：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text"  value="" placeholder="" id="password" name="password">
		</div>
	</div>-->
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>用户类型：</label>
		<div class="formControls col-xs-8 col-sm-9 skin-minimal">
			<div class="radio-box">
				<input name="customertype" type="radio" id="customertype-1" checked>
				<label for="customertype-1">个人用户</label>
			</div>
			<div class="radio-box">
				<input type="radio" id="customertype-2" name="customertype">
				<label for="customertype-2">公司法人</label>
			</div>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>手机号：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text"  placeholder="" id="phone" name="phone">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">商户地址：</label>
		<div class="formControls col-xs-8 col-sm-9 ">
			<span class="select-box" style="width:150px;">
				<select class="select" name="adminRole" size="1" id="merchantprovince"></select>
			</span>
			<span class="select-box" style="width:150px;">
				<select class="select" name="adminRole" size="1" id="merchantcity"></select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>详细地址：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" value="" placeholder="" id="Businessaddress" name="Businessaddress">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>商户服务电话：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="servicephone" id="servicephone">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>微信商户经营类目ID：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="WeChatbusiness" id="WeChatbusiness">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>支付宝商户经营类目ID：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" value="" placeholder="" id="Alipaybusiness" name="Alipaybusiness">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>开户行的编码：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="codebank" id="codebank">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>开户银行卡号：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="accountnumber" id="accountnumber">
		</div>
	</div><div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>营业执照：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" value="" placeholder="" id="businesslicense" name="businesslicense">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>机构号：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="organizationnumber" id="organizationnumber">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>身份证：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="ID" id="ID">
		</div>
	</div><div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>机构抽成费率：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" value="" placeholder="" id="rate" name="rate">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>联系人：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="contacts" id="contacts">
		</div>
	</div>
	<!--<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>联系人类型：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="email" id="email">
		</div>
	</div>-->
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>联系人类型：</label>
		<div class="formControls col-xs-8 col-sm-9 skin-minimal">
			<div class="radio-box">
				<input name="contactstype" type="radio" id="contactstype-1" checked>
				<label for="contactstype-1">法人</label>
			</div>
			<div class="radio-box">
				<input type="radio" id="contactstype-2" name="contactstype">
				<label for="contactstype-2">实际控制人</label>
			</div>
			<div class="radio-box">
				<input name="contactstype"  id="contactstype-3" type="radio">
				<label for="contactstype-3">代理人</label>
			</div>
			<div class="radio-box">
				<input type="radio" id="contactstype-4" name="contactstype">
				<label for="contactstype-4">其他</label>
			</div>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>行业：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="industry" id="industry">
		</div>
	</div>
	<!--<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>业务类型：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" value="" placeholder="" id="phone" name="phone">
		</div>
	</div>-->
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">业务类型：</label>
		<div class="formControls col-xs-8 col-sm-9 ">
			<span class="select-box" style="width:150px;">
				<select class="select" name="adminRole" size="1" id="businesstype"></select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">开户行所在：</label>
		<div class="formControls col-xs-8 col-sm-9 ">
			<span class="select-box" style="width:150px;">
				<select class="select" name="adminRole" size="1" id="locatedprovince"></select>
			</span>
			<span class="select-box" style="width:150px;">
				<select class="select" name="adminRole" size="1" id="locatedcity"></select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>开户行支行名：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="branchbank" id="branchbank">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>开户人姓名：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="owner" id="owner">
		</div>
	</div><div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>动码是否支持交易：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" value="" placeholder="" id="doescode" name="doescode">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>固码是否支持交易：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="fixedcode" id="fixedcode">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>费率集合：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="rateset" id="rateset">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">票据地址：</label>
		<div class="formControls col-xs-8 col-sm-9 ">
			<span class="select-box" style="width:150px;">
				<select class="select" name="adminRole" size="1" id="billprovince"></select>
			</span>
			<span class="select-box" style="width:150px;">
				<select class="select" name="adminRole" size="1" id="billcity"></select>
			</span>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>票据详细地址：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="billaddress" id="billaddress">
		</div>
	</div>	
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>小商户号：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="smallmerchant" id="smallmerchant">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>返回状态码：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" value="" placeholder="" id="statecode" name="statecode">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>返回状态：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<input type="text" class="input-text" placeholder="" name="returnstate" id="returnstate">
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3">备注：</label>
		<div class="formControls col-xs-4 col-sm-5">
			<textarea name="remarks" cols="" rows="" class="textarea"  placeholder="" dragonfly="true" id="remarks"></textarea>
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<input class="btn btn-primary radius" type="button" value="&nbsp;&nbsp;保存&nbsp;&nbsp;">
		</div>
	</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去--> 
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$("#form-admin-add").validate({
		rules:{
			adminName:{
				required:true,
				minlength:4,
				maxlength:16
			},
			password:{
				required:true,
			},
			password2:{
				required:true,
				equalTo: "#password"
			},
			sex:{
				required:true,
			},
			phone:{
				required:true,
				isPhone:true,
			},
			email:{
				required:true,
				email:true,
			},
			adminRole:{
				required:true,
			},
		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'post',
				url: "xxxxxxx" ,
				success: function(data){
					layer.msg('添加成功!',{icon:1,time:1000});
				},
                error: function(XmlHttpRequest, textStatus, errorThrown){
					layer.msg('error!',{icon:1,time:1000});
				}
			});
			var index = parent.layer.getFrameIndex(window.name);
			parent.$('.btn-refresh').click();
			parent.layer.close(index);
		}
	});
});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>